home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bcddbresult.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.5 KB  |  80 lines

  1. /* 
  2.  *
  3.  * $Id: k3bcddbresult.h 768492 2008-01-30 08:39:42Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16.  
  17.  
  18. #ifndef K3B_CDDB_RESULT_H
  19. #define K3B_CDDB_RESULT_H
  20.  
  21.  
  22. #include <qstringlist.h>
  23. #include "k3b_export.h"
  24.  
  25.  
  26. class LIBK3B_EXPORT K3bCddbResultHeader
  27. {
  28.  public:
  29.   QString category;
  30.   QString title;
  31.   QString artist;
  32.   QString discid;
  33. };
  34.  
  35.  
  36. class LIBK3B_EXPORT K3bCddbResultEntry
  37. {
  38.  public:
  39.   // just to set a default
  40.   K3bCddbResultEntry()
  41.     : category("misc"),
  42.     year(0) {
  43.   }
  44.  
  45.   QStringList titles;
  46.   QStringList artists;
  47.   QStringList extInfos;
  48.  
  49.   QString cdTitle;
  50.   QString cdArtist;
  51.   QString cdExtInfo;
  52.  
  53.   QString genre;
  54.   QString category;
  55.   int year;
  56.   QString discid;
  57.  
  58.   QString rawData;
  59. };
  60.  
  61.  
  62. class LIBK3B_EXPORT K3bCddbResult
  63. {
  64.  public:
  65.   K3bCddbResult();
  66.   //  K3bCddbQuery( const K3bCddbQuery& );
  67.  
  68.   void clear();
  69.   void addEntry( const K3bCddbResultEntry& = K3bCddbResultEntry() );
  70.   const K3bCddbResultEntry& entry( unsigned int number = 0 ) const;
  71.   int foundEntries() const;
  72.  
  73.  private:
  74.   QValueList<K3bCddbResultEntry> m_entries;
  75.  
  76.   K3bCddbResultEntry m_emptyEntry;
  77. };
  78.  
  79. #endif
  80.